﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:SLS.Controls"
                    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                    xmlns:converts="clr-namespace:SLS.ExClassLib.Converters;assembly=Converters"
                    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                    mc:Ignorable="d">
    <converts:BooleanToVisibilityConverter x:Key="BooleanToVisibilityCon" />
    <Style x:Key="ContextMenuItemStyle">
        <Setter Property="MenuItem.Header"
                Value="{Binding SDES}" />
        <Setter Property="MenuItem.ItemsSource"
                Value="{Binding Children}" />
        <Setter Property="MenuItem.Command"
                Value="{Binding Command}" />
    </Style>
    <Style x:Key="WPFMenuItemStyle"
           TargetType="{x:Type local:WPFMenuItem}">
        <Setter Property="MenuItem.Header"
                Value="{Binding Text}" />
        <Setter Property="MenuItem.ItemsSource"
                Value="{Binding Children}" />
        <Setter Property="MenuItem.Command"
                Value="{Binding Command}" />
    </Style>
</ResourceDictionary>